package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.api.content.TeachplanMediaDTO;
import com.xuecheng.api.content.model.TeachplanDTO;
import com.xuecheng.content.entity.Teachplan;

/**
 * <p>
 * 课程计划 服务类
 * </p>
 *
 * @author itcast
 * @since 2022-03-31
 */
public interface TeachplanService extends IService<Teachplan> {
/** *
 *根据课程Id查询课程计划(树形结构)
 ** @param courseId
 ** @param companyId
 */
    TeachplanDTO queryTreeNodesByCourseId(Long courseId, Long companyId);

    TeachplanDTO createOrModifyTeachPlan(TeachplanDTO dto, Long companyId);

    void removeTeachPlan(Long teachplanId, Long companyId);

    TeachplanMediaDTO associateMedia(TeachplanMediaDTO teachplanMediaDTO, Long companyId);

    void unboundMedia(Long companyId, Long courseBaseId, Long teachplanMediaId);
}
